package top.bulk.encrypt.test.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import top.bulk.encrypt.annotation.Decrypt;
import top.bulk.encrypt.annotation.Encrypt;
import top.bulk.encrypt.strategy.CryptoStrategy;

/**
 * 实体类
 *
 * @author 散装java
 * @date 2024-07-25
 */
@Data
@Accessors(chain = true)
public class UserEntity {

    public Integer id;

    @Encrypt
    @Decrypt
    private String tel;

    @Encrypt(strategy = CryptoStrategy.RSA)
    @Decrypt(strategy = CryptoStrategy.RSA)
    private String telRsa;
}
